export function emjoSelf() {
  const emjoMap = {
    smile: "😄",
    smiley: "😃",
    laughing: "😆",
    wink: "😉",
    blush: "😊",
    smirk: "😏",
    heart_eyes: "😍",
    kissing_heart: "😘",
    kissing: "😗",
    kissing_closed_eyes: "😚",
    stuck_out_tongue_winking_eye: "😜",
    stuck_out_tongue_closed_eyes: "😝",
    stuck_out_tongue: "😛",
    grinning: "😀",
    grin: "😁",
  };
  return {
    name: "vite-plugin-emjo-self",
    transform(code, id) {
      if (id.endsWith(".vue")) {
        const template = code;
        let newTemplate = code;
        for (const [key, value] of Object.entries(emjoMap)) {
          newTemplate = template.replace(new RegExp(`emjo-${key}`, "g"), value);
        }
        return newTemplate;
        //  }
      }
    },
  };
}
